Added close button to errormessage (osx), closes #248