Add callback which is called when socket is listening or receives an error during startup
1.0.2