Ensure that callbacks are always executed asynchronously.

Implementation for issue #85