Make release return a bool. Improve tests and logging.