Reworked startup sequence to respect server.listen() failures and timings.
Merge pull request #983 from miksago/improve-startup

Reworked startup sequence to respect server.listen() failures and timings