resources cleanup if server creation fails