Added error handling to signal() call