Only establish connection if optional spec was passed
Clean up spec file