Convenience methods for binding a function to an os.Signal