Script that uses unix signals can not be executed properly as a reaction on script monitor